Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: OpenDoc Class Reference /
Part 1 - Classes and Methods / ODMenuBar


GetMenuAndItem

Mac OS

The GetMenuAndItem method gets the menu/menu item designation for the specified command ID.

void GetMenuAndItem (in ODCommandID command, 
                     out ODMenuID menu, 
                     out ODMenuItemID menuItem);
command
The command ID of the menu item to be checked. On the Mac OS platform, the command ID is defined as a signed 32-bit value.
menu
A platform-specific identifier for a menu. On the Mac OS platform, the menu ID is defined as a signed 16-bit value.
menuItem
A platform-specific identifier for a menu item. On the Mac OS platform, the menu item ID is defined as a signed 16-bit value.
EXCEPTIONS
kODErrInvalidCommandID
The specified menu item does not exist.
SEE ALSO
The ODCommandID type (page 895).


Previous Book Contents Book Index Next

© Apple Computer, Inc.
17 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help